<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:p="http://primefaces.org/ui" xmlns:a4j="http://richfaces.org/a4j"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</h:head>
<h:body>
	<ui:composition template="template.xhtml">

		<ui:define name="title">mehmet emmy</ui:define>
		<ui:define name="body">
			<c:if test="${sessionScope.currentKullanici.grup != 2}">
				<script language="javascript">
                    	alert("bu sayfaya erişim yetkiniz yoktur.")
    					redirectPage();
	  	 			</script>
			</c:if>
			<h:form id="firmaUpdateForm">
				<p:growl id="firmaUpdateGrowl" sticky="true" showDetail="true"
					life="3000" />
					
				<c:if test="${SirketprofilBean.currentSirketpro != null}">

					<p:tabView effect="puff" effectDuration="normal">

						<p:tab title="Şirket Profil">
							<h:panelGrid columns="2" cellpadding="10">
								<!-- <p:graphicImage value="/images/godfather/godfather1.jpg" /> -->								
								<p:inplace id="proAciklama" editor="true" toggleable="true">
									<h:inputTextarea required="true" label="profil" 
										value="#{SirketprofilBean.currentSirketpro.profilAciklama}" />
								</p:inplace>
												
							</h:panelGrid>
						</p:tab>
						<p:tab title="Vizyon">
							<h:panelGrid columns="2" cellpadding="10">
								<!-- <p:graphicImage value="/images/godfather/godfather1.jpg" /> -->
								<p:inplace id="vizyon" editor="true">
									<h:inputTextarea required="true" label="vizyon"
										 value="#{SirketprofilBean.currentSirketpro.vizyon}" />
								</p:inplace>
							</h:panelGrid>
						</p:tab>
						<p:tab title="Misyon">
							<h:panelGrid columns="2" cellpadding="10">
								<!-- <p:graphicImage value="/images/godfather/godfather1.jpg" /> -->
								<p:inplace id="misyon" editor="true">
									<h:inputTextarea required="true" label="misyon"
										 value="#{SirketprofilBean.currentSirketpro.misyon}" />
								</p:inplace>
							</h:panelGrid>
						</p:tab>
						<p:tab title="IK Politika">
							<h:panelGrid columns="2" cellpadding="10">
								<!-- <p:graphicImage value="/images/godfather/godfather1.jpg" /> -->
								<p:inplace id="ikPolitika" editor="true">
									<h:inputTextarea required="true" label="ikPolitika"
										 value="#{SirketprofilBean.currentSirketpro.ikPolitikasi}" />
								</p:inplace>
							</h:panelGrid>
						</p:tab>
						<p:tab title="Kalite">
							<h:panelGrid columns="2" cellpadding="10">
								<!-- <p:graphicImage value="/images/godfather/godfather1.jpg" /> -->
								<p:inplace id="kalitePolitika" editor="true">
									<h:inputTextarea required="true" label="kalitePolitika"
										 value="#{SirketprofilBean.currentSirketpro.kalitePolitikasi}" />
								</p:inplace>
							</h:panelGrid>
						</p:tab>
						<p:tab title="Çevre">
							<h:panelGrid columns="2" cellpadding="10">
								<!-- <p:graphicImage value="/images/godfather/godfather1.jpg" /> -->
								<p:inplace id="cevrePolitika" editor="true">
									<h:inputTextarea required="true" label="cevrePolitika"
										value="#{SirketprofilBean.currentSirketpro.cevrePolitikasi}" />
								</p:inplace>
							</h:panelGrid>
						</p:tab>
						<p:tab title="İletişim">							
								<!-- <p:graphicImage value="/images/godfather/godfather1.jpg" /> -->
								<h:panelGrid columns="2" cellpadding="10">
									<h:outputText value="Tel1: " />
									<p:inplace id="tel1" editor="true">
										<p:inputText required="true" label="tel1"
											value="#{SirketprofilBean.currentSirketpro.tel1}"
											style="font-weight: bold" />
									</p:inplace>
							
									<h:outputText value="Tel2: " />
									<p:inplace id="tel2" editor="true">
										<p:inputText required="true" label="tel2"
											value="#{SirketprofilBean.currentSirketpro.tel2}"
											style="font-weight: bold" />
									</p:inplace>
									
									<h:outputText value="Fax: " />
									<p:inplace id="fax" editor="true">
										<p:inputText required="true" label="fax"
											value="#{SirketprofilBean.currentSirketpro.fax}" 
											style="font-weight: bold"/>
									</p:inplace>
																	
									<h:outputText value="e-mail: " />
									<p:inplace id="email" editor="true">
										<p:inputText required="true" label="email"
											value="#{SirketprofilBean.currentSirketpro.email}" 
											style="font-weight: bold"/>
									</p:inplace>
																	
									<h:outputText value="Web Page: " />
									<p:inplace id="webpage" editor="true">
										<p:inputText required="true" label="webpage"
											value="#{SirketprofilBean.currentSirketpro.webAdd}" 
											style="font-weight: bold"/>
									</p:inplace>							
									
									<h:outputText value="İl: " />
									<p:inplace id="il" editor="true">
										<p:inputText required="true" label="il"
											value="#{SirketprofilBean.currentSirketpro.il}" 
											style="font-weight: bold"/>
									</p:inplace>
									
									<h:outputText value="İlçe: " />
									<p:inplace id="ilce" editor="true">
										<p:inputText required="true" label="ilce"
											value="#{SirketprofilBean.currentSirketpro.ilce}" 
											style="font-weight: bold"/>
									</p:inplace>
									
									<h:outputText value="Mahalle: " />
									<p:inplace id="mahalle" editor="true">
										<p:inputText required="true" label="mahalle"
											value="#{SirketprofilBean.currentSirketpro.mahalle}" 
											style="font-weight: bold"/>
									</p:inplace>
									
									<h:outputText value="Sokak: " />
									<p:inplace id="sokak" editor="true">
										<p:inputText required="true" label="sokak"
											value="#{SirketprofilBean.currentSirketpro.sokak}" 
											style="font-weight: bold"/>
									</p:inplace>
									
									<h:outputText value="Numara: " />
									<p:inplace id="numara" editor="true">
										<p:inputText required="true" label="numara"
											value="#{SirketprofilBean.currentSirketpro.numara}" 
											style="font-weight: bold"/>
									</p:inplace>
							</h:panelGrid>
						</p:tab>
					</p:tabView>				
					<center>
						<p:commandButton value="Save"
							update=":firmaUpdateForm:firmaUpdateGrowl"
							action="#{SirketprofilBean.SaveOrUpdate}" />
					</center>
				</c:if>

			</h:form>
		</ui:define>
	</ui:composition>
</h:body>
</html>